#include <QCoreApplication>
#include <QDateTime>
#include <QDebug>
#include "clock.h"

QString policyToString(Clock::UpdatePolicy policy)
{
    if (policy == Clock::AutoPolicy)
        return "auto";
    return "manual";
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    Clock clock;
    qDebug() << "TimeUpdates = " << policyToString(clock.timeUpdates()) << endl
	     << "Timezone = " << clock.timezone() << endl
             << "Timeservers = " << clock.timeservers() << endl
	     << "TimezoneUpdates = " << policyToString(clock.timezoneUpdates()) << endl
	     << "Time = " << clock.time();
}
